package com.java.userservice.dao;

import com.java.common.dao.BaseMapper;
import com.java.userservice.model.Permission;
import com.java.userservice.model.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> listByLoginId(int login);


    List<Permission> listByLoginIds();

    List<Permission> listAll();

    /**
     * 根据上级ID查询权限
     * @param id
     * @return
     */
    List<Permission> getPermission(int id);
}
